package com.ssy.lingxi.platform.template.service.controller.inner;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.template.api.model.dto.inner.MemberPurchaseInnerDTO;
import com.ssy.lingxi.platform.template.service.service.web.MemberPurchaseWebService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

/**
 * 会员采购门户-内部接口
 *
 * @author : lqa
 * @date : 14:27 25/03/2022
 */
@RestController
@RequestMapping("/template/web/memberPurchaseWeb/inner")
public class MemberPurchaseWebInnerController {

    @Resource
    private MemberPurchaseWebService memberPurchaseWebService;

    /**
     * 判断是否创建采购门户
     * @param dto 请求参数
     * @return 操作结果
     */
    @PostMapping("/exitMemberPurchase")
    public Wrapper<Boolean> exitMemberPurchase(@RequestBody @Valid MemberPurchaseInnerDTO dto) {
        return memberPurchaseWebService.exitMemberPurchase(dto);
    }
}
